-
Notifications
You must be signed in to change notification settings - Fork 44
Test case & fix for getting items from empty dictionary. SIGBUS & SIGSEGV on Mac #368
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Test case & fix for getting items from empty dictionary. SIGBUS & SIGSEGV on Mac #368
Conversation
|
Nevertheless, I thought #359 works backwards compatible for the case: old dict + new library. |
|
Problem:
Using |
|
@hendrikmuhs is 4ec9a76 what you had in mind ? |
👍 yes, that will fix this BWC case. FWIW: The python tests work end to end, so compile an empty dict. As rust misses the compiler parts, the added binary file has been created with an older compiler, that's why it covers the BWC case. I will think about improving BWC testing, but for now lets merge that fix. |
Co-authored-by: Hendrik Muhs <[email protected]>
|
Cool, yeah will merge and attempt a release once tests are green! There is some sort of weird satisfaction that the test case I created 3 years ago identified that edge case :D |
Opening this PR as continuation to narekgharibyan#2.
Unfortunately even after #359
cargo testcommand fails on this branch.Another run
I tried and the situation is following:
cargo testcommand failed on master without this test case 0/10 timescargo testcommand failed with code before empty kv dict can crash when dumping dict #359 9/10 timescargo testcommand failed with code after empty kv dict can crash when dumping dict #359 6/10 timesSo unfortunately it seems we still have an issue at the moment :(